<template>
  <div id="version">
    <span class="text">当前版本：{{ version.currentVersion }}</span>
    <el-checkbox v-model="version.autoupdate">自动更新</el-checkbox><br />
    <button id="btn">版本检查</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      version: {
        currentVersion: "1.0.0",
        autoupdate: true,
      },
    };
  },
};
</script>

<style lang="scss" scoped>
#version {
  padding-top: 20px;
  .text {
    color: #7e7e7e;
    font-size: 14px;
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
      "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    margin-left: 120px;
    margin-right: 50px;
  }

  #btn {
    background-color: #2b2b2b;
    border: 1px solid #9c1a1a;
    outline-style: none;
    height: 30px;
    width: 120px;
    color: #7e7e7e;
    margin-left: 240px;
    margin-top: 100px;
    cursor: pointer;
  }
  #btn:hover {
    background-color: #9c1a1a;
  }
}

/deep/ .el-checkbox__label {
  width: 120px;
}

/deep/ .el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: #9c1a1a;
  border-color: #9c1a1a;
}

/deep/ .el-checkbox__inner {
  border: 1px solid #7e7e7e;
  background-color: #bacac6;
}

/deep/ .el-checkbox__input.is-focus .el-checkbox__inner {
  border: 1px solid #7e7e7e;
  border-color: #9c1a1a;
}

/deep/ .el-checkbox__input.is-checked + .el-checkbox__label {
  color: #9c1a1a;
}
</style>
